% 1. C-like 
% 1.1. C 
% 1.2. C++
% 1.3. C#
% 1.4. Java
% 2. Interpreted
% 2.1. PHP
% 2.2. JavaScript
% 2.3. Python
% 3. Tags and CCS
% 3.1. HTML
% 3.2. XML
% 3.3. CSS
% 4. Bash
% 5. Make
% 6. SQL
% 7. Text and Console
%----------------------------------------------
% 1.1. C 
\lstnewenvironment{lstC}
{\lstset{language=C, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -
% 1.2. C++ 
\lstnewenvironment{lstCpp}
{\lstset{language=C++, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -
% 1.3. C#
\lstnewenvironment{lstCs}
{\lstset{language=[sharp]C, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -
% 1.4. Java
\lstnewenvironment{lstJava}
{\lstset{language=Java, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
%----------------------------------------------
% 2.1. PHP
\lstnewenvironment{lstPHP}
{\lstset{language=PHP, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -
% 2.2. JS
\lstnewenvironment{lstJS}
{\lstset{language=JSdef, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -
% 2.3. Python
\lstnewenvironment{lstPy}
{\lstset{language=Python, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -
% 2.4. Perl
\lstnewenvironment{lstPerl}
{\lstset{language=Perl, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
%----------------------------------------------
% 3.1. HTML
\lstnewenvironment{lstHTML}
{\lstset{language=HTML, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -
% 3.2. CSS
\lstnewenvironment{lstCSS}
{\lstset{language=CSS, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -
% 3.3. XML
\lstnewenvironment{lstXML}
{\lstset{language=XML, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
%----------------------------------------------
% 4. Bash
\lstnewenvironment{lstBash}
{\lstset{language=Bash, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
%----------------------------------------------
% 5. Make
\lstnewenvironment{lstMake}
{\lstset{language=make, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
%----------------------------------------------
% 6. SQL
\lstnewenvironment{lstSQL}
{\lstset{language=SQL, 
basicstyle=\ttfamily, keywordstyle=\bfseries, commentstyle=\itshape, stringstyle=\sffamily,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,
breaklines=true, breakatwhitespace=true,showstringspaces=false} }
{}
%----------------------------------------------
% Zwykły tekst
\lstnewenvironment{lstV}
{\lstset{basicstyle=\ttfamily,frame=single,columns=flexible,
rulecolor=\color{Gray},backgroundcolor=\color{white},
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace} }
{}

% - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstT}
{\lstset{basicstyle=\ttfamily,frame=single,columns=fixed,
,rulecolor=\color{gray},
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstR}
{\lstset{basicstyle=\rm,columns=flexible,frame=leftline,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace} }
{}
% - - - - - - - - - - - - - - - - - - - - - - -